<div class="row">
    <div class="col-md-12">
        <div class="box">
            <div class="box-header with-border">
                <h3 class="box-title"><a href="/bt/add/bt"><button type="button" class="btn btn-block btn-default">新增内容</button></a></h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
                <table class="table table-bordered">
                    <tbody><tr>
                        <th style="width: 10px">ID</th>
                        <th>标题</th>
                        <th>文件大小</th>
                        <th>种子大小</th>
                        <th>哈希值</th>
                        <th>点击量</th>
                        <th>热度</th>
                        <th>创建时间</th>
                        <th>修改时间</th>
                        <th></th>
                    </tr>
                    {{range $i, $v := .list}}
                        <tr>
                            <td>{{$v.ID}}</td>
                            <td>{{$v.Name}}</td>
                            <td>{{$v.Length}}</td>
                            <td>{{$v.PieceLength}}</td>
                            <td>{{$v.Infohash}}</td>
                            <td>{{$v.Hits}}</td>
                            <td>{{$v.Hot}}</td>
                            <td>{{$v.CreatedAt | TimeToDate}}</td>
                            <td>{{$v.UpdatedAt | TimeToDate}}</td>
                            <td>
                                <a href="/bt/update/bt/{{$v.ID}}"><span class="label label-primary">更新</span></a>
                                <a onclick="javascript:return confirm('确认删除?')" href="/bt/del/bt/{{$v.ID}}"><span class="label label label-danger">删除</span></a>
                            </td>
                        </tr>
                    {{end}}
                    </tbody>
                </table>
            </div>
            <!-- /.box-body -->
            {{.PageHtml | strToHtml}}
        </div>
    </div>
</div>